<template>
  <div>
    <nav>
      <router-link to="/index">首页</router-link>
      <router-link to="/class">分类</router-link>
      <router-link to="/order">订单</router-link>
      <router-link to="/my">我的</router-link>
    </nav>
    <h3>路由切换页面</h3>
    <router-view></router-view>
  </div>
</template>

<script>
export default {}
</script>

<style>
.router-link-active {
  color: white;
  background: black;
}
</style>
